/*
 * @Author: yan_hai_dong 891236760@qq.com
 * @Date: 2022-08-25 15:35:02
 * @LastEditors: yan_hai_dong 891236760@qq.com
 * @LastEditTime: 2022-08-25 15:50:34
 * @FilePath: \app\src\utils\ts.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
interface A {
    length: number
}

const reduces = <T extends A>(arg: T): T => arg
function reduces2<T extends A>(arg: T):String {
    return '11'
}

reduces2([11])